package com.simpleaccount.Common;

/**
 * Created by Administrator on 2017/7/13.
 */

import android.app.Application;
import android.content.Context;
/**
 * 全局获取上下文类：用于保存和调用全局应用配置及访问网络数据
 * @author guopeng
 * @version 1.0
 * @created 2015-10-26
 */
public class AppContext extends Application {

    private static Context instance;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = getApplicationContext();

        AppException appException = AppException.getInstance();
        appException.init(instance);
    }

    public static Context getContext() {
        return instance;
    }

}